[C#] Startup List

Posted by Power-Mosfet on Stack Overflow See other posts from Stack Overflow or by Power-Mosfet
Published on 2010-05-05T18:54:42Z Indexed on 2010/05/05 18:58 UTC
Read the original article Hit count: 164

Filed under:

Hi, How do I gat the the full .exe path

ManagementClass mangnmt = new ManagementClass("Win32_StartupCommand");
            ManagementObjectCollection mcol = mangnmt.GetInstances();
            foreach (ManagementObject strt in mcol)
            {
                string[] lv = new String[4];
                lv[0] = strt["Caption"].ToString();
                lv[1] = strt["Location"].ToString();
                lv[2] = strt["Command"].ToString();
                lv[3] = strt["Description"].ToString();
                listView1.Items.Add(new ListViewItem(lv, 0));
            }

© Stack Overflow or respective owner

Related posts about c#